<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>  

<h2><bean:message  bundle="content" key="docform.title" /></h2>
 
 	<html:form action="/document/persist" method="post" enctype="multipart/form-data">
 	
	<table>
		<tr>
		    <td><bean:message  bundle="content"  key="docform.title.label" /></td>
		    <td><html:text property="title" size="65"/>
		    <html:errors property="title"/></td>
		</tr>
		<tr>
		    <td><bean:message  bundle="content"  key="docform.description.label" /></td>
		    <td><html:textarea property="description" rows="5" cols="50" />
		    <html:errors property="description"/></td>
		</tr>
		<tr>
		    <td><bean:message  bundle="content"  key="docform.file.label" /></td>
    		<td><html:file property="file" size="50" />
    		<html:errors property="file"/></td>
		</tr>
		<tr>
		    <td colspan="2">
		        <html:hidden property="id"/>
		        <input type="hidden" name="dispatch" value="save"/>
		        <br/>
		        <input type="submit" value="<bean:message  bundle="content"  key="docform.submit.label" />" />
		    </td>
		</tr>
	</table>
 
 </html:form>